<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%
String path = request.getContextPath();
%>

<div class="easyui-layout" data-options="fit:true" id="booklayout">
	<div data-options="region:'west',split:true" style="width:400px">
	<form id="bookForm" method="post" action="/com/frame/metadata/wordbook/WorkbookPage@queryWrorkbook.page">
		<div class="easyui-panel ui-queryBar" title="数据字典编码列表" border="false" data-options="doSize:false" style="height:38px">
		  	<w:hidden bind="pageNum"/>
			<w:hidden bind="pageSize_"/>
			<w:hidden bind="id"/>
			<table cellpadding="0" cellspacing="0" style="margin-top:2px;margin-left:5px">
				<tr>
					<td><w:text bind="bean.like" style="width:180px;"/></td>
					<td>
						&nbsp;<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_search" onclick="$w.execForm({form:$('#bookForm')})">查询</a>
						<a href="javascript:;"  class="easyui-linkbutton" iconCls="icon_add" onclick="addbook()">添加</a>
					</td>
				</tr>
				</tr>
			</table>
		</div>
		</form>
		<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																					pageNum:<w:write bind="pageNum"/>,
																					pageSize:<w:write bind="pageSize_"/>,
																					total:<w:write bind="pagination.totalCount"/>,form:'bookForm'">
		<thead>
			<tr class="ui_th">
				<td width="120">字典编码</td>
	   			<td>字典名称</td>
	   			<td align="center"width="90">操作</td>
			</tr>
		</thead>
		<tbody>
		<w:iterate id="info" bind="resultList_">
			<tr class="ui_td" onclick="showItemlist('<w:write bind="#info.code"/>')">
				<td><w:write bind="#info.code"/></td>
				<td><w:write bind="#info.name"/></td>
				<td align="center"><a href='javascript:editbook(<w:write bind="#info.id"/>);' class='tb_data_a'>修改</a>&nbsp;&nbsp;<a href='javascript:delbook(<w:write bind="#info.id"/>);' class='tb_data_a'>删除</a></td>
			</tr>
		</w:iterate>
		
		</tbody>
	</table>
	</div>
	<div data-options="region:'center',border:false">
	
	</div>
</div>